﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace diyCtrl
{
    public partial class AfTextBox : UserControl
    {
        public AfTextBox()
        {
            InitializeComponent();
        }

        protected override void OnLayout(LayoutEventArgs e)
        {
            base.OnLayout(e);
            int w = this.Width;
            int h = this.Height;
            //MessageBox.Show(string.Format("w:{0},h:{1}",w,h));
            edit.Width = w;
            edit.Height = h;
            //edit.Multiline = true;
            edit.Size = new Size(w, h);
        }

    }
}
